package uk.ac.imperial.gpaexpress.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;

public class GPAExpress implements EntryPoint {
	
	public void onModuleLoad() {
		UserInterface ui = new UserInterface();
		RootLayoutPanel.get().add(ui);
		LoginScreen loginScreen = new LoginScreen(ui);
		PopupPanel popupPanel = new PopupPanel();
		popupPanel.setWidget(loginScreen);
		popupPanel.setHeight("250px");
		popupPanel.setWidth("450px");
		popupPanel.setGlassEnabled(true);
		popupPanel.center();
		loginScreen.userText.setFocus(true);
	}
}
